﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace fddbv
{
    class Person
    {

        public string heroName { get; set; }
        public string heroInfo { get; set; }
        public int attack { get; set; }
        public int defense { get; set; }
        public int speed { get; set; }
        public string nickName { get; set; }
        public Person(string nickName, string heroName, string heroInfo, int attack, int defense, int speed)
        {
            this.nickName = nickName;
            this.heroInfo = heroInfo;
            this.heroName = heroName;
            this.attack = attack;
            this.defense = defense;
            this.speed = speed;
        }
        
        public void aa()
        {
            Console.WriteLine("我是英雄{0},{1},我的昵称是{2},攻击力{3}，防御力{4}，速度{5}",
               this.heroName, this.heroInfo, this.nickName, this.attack, this.defense, this.speed);

        }

    }

    class alk : Person
    {
        public string ssdj { get; set; }
        public string lymg { get; set; }
        public string zdpx { get; set; }
        public alk(string nickName, string heroName, string heroInfo, int attack, int defense, int speed, string ssdj, string lymg, string zdpx)
            : base(nickName, heroName, heroInfo, attack, defense, speed)
        {
            this.ssdj = ssdj;
            this.lymg = lymg;
            this.zdpx = zdpx;
        }

        public void jn()
        {
            Console.WriteLine("我的技能是{0}，{1}，{2}", this.ssdj, this.lymg, this.zdpx);
        }
    }
    class taila: Person
    {
        public string jlcj { get; set; }
        public string ystj { get; set; }
        public string fcsl { get; set; }

        public taila(string nickName, string heroName, string heroInfo, int attack, int defense, int speed, string jlcj, string ystj, string fcsl)
    : base(nickName, heroName, heroInfo, attack, defense, speed)
        {
            this.jlcj = jlcj;
            this.ystj = ystj;
            this.fcsl = ystj;
        }
        public void jn()
        {
            Console.WriteLine("我的技能是{0}，{1}，{2}", this.jlcj, this.ystj, this.fcsl);
        }
    }

    class lukasi : Person
    {
        public string jsxj { get; set; }
        public string nnlc { get; set; }
        public string xfwj { get; set; }

        public lukasi(string nickName, string heroName, string heroInfo, int attack, int defense, int speed, string jsxj, string nnlc, string xfwj)
    : base(nickName, heroName, heroInfo, attack, defense, speed)
        {
            this.jsxj = jsxj;
            this.nnlc = nnlc;
            this.xfwj = xfwj;
        }
        public void jn()
        {
            Console.WriteLine("我的技能是{0}，{1}，{2}", this.jsxj, this.nnlc, this.xfwj);
        }
    }

    class luofei : Person
    {
        public string nnjl { get; set; }
        public string aycs { get; set; }
        public string skjl { get; set; }

        public luofei(string nickName, string heroName, string heroInfo, int attack, int defense, int speed, string nnjl, string aycs, string skjl)
    : base(nickName, heroName, heroInfo, attack, defense, speed)
        {
            this.nnjl = nnjl;
            this.aycs = aycs;
            this.skjl = skjl;
        }
        public void jn()
        {
            Console.WriteLine("我的技能是{0}，{1}，{2}", this.nnjl, this.aycs, this.skjl);
        }
    }
}
